import request from '@/utils/request'

export const loginAPI = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

/**
 * 
 * @returns 获取用户信息
 */ 
export const getUserInfoApi = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

/**
 * 获取员工基本信息
 * @param {*} id 用户ID 
 * @returns 
 */
export const getBestUserInfoApi = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}
